@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

.el-dialog__body {
  padding: 20px !important;
  color: #606266;
  font-size: 14px;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.warn-content {
  background: rgba(66, 185, 131, .1);
  border-radius: 2px;
  padding: 11px;
  word-spacing: .05rem;

  a {
    color: #42b983;
    font-weight: 400;
  }
}

//main-container全局样式
.app-main {
  height: 100%;
}

.app-container {
  padding: 20px;
}

.head-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }

  input {
    height: 30.5px;
    line-height: 30.5px;
  }

  .el-input__icon {
    line-height: 31px;
  }
}

.el-avatar {
  display: inline-block;
  text-align: center;
  background: #ccc;
  color: #fff;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 16px;
}

.logo-con {
  height: 60px;
  padding: 13px 0 0;

  img {
    width: 150px;
    display: block;
    //margin: 0 auto;
  }
}

#el-login-footer {
  height: 40px;
  line-height: 40px;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-family: Arial;
  font-size: 12px;
  letter-spacing: 1px;
}

#el-main-footer {
  background: none repeat scroll 0 0 white;
  border-top: 1px solid #e7eaec;
  overflow: hidden;
  padding: 10px 6px 0 6px;
  height: 33px;
  font-size: 0.7rem !important;
  color: #7a8b9a;
  letter-spacing: 0.8px;
  font-family: Arial, sans-serif !important;
  position: fixed;
  bottom: 0;
  z-index: 99;
  width: 100%;
}

.eladmin-upload {
  border: 1px dashed #c0ccda;
  border-radius: 5px;
  height: 45px;
  line-height: 45px;
  width: 368px;
}

/*表格里面图片的样式*/
.table-img {
  width: 40px;
  max-height: 40px;
}

.table-popper {
  width: 60%;
}

/*上传组件的样式*/
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.avatar-uploader .el-upload:hover {
  border-color: #409EFF;
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 140px;
  height: 140px;
  line-height: 140px !important;
  text-align: center;
}

.avatar {
  width: 140px;
  height: 140px;
  display: block;
}

// 设置文字超出父容器长度隐藏为省略号
.text-ellipsis {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.text-center {
  text-align: center !important;
}

/* Add a gray border to the top */
.border-top {
  border-top: 1px #e1e4e8 solid !important;
}

/* Add a gray border to the right */
.border-right {
  border-right: 1px #e1e4e8 solid !important;
}

/* Add a gray border to the bottom */
.border-bottom {
  border-bottom: 1px #e1e4e8 solid !important;
}

/* Add a gray border to the left */
.border-left {
  border-left: 1px #e1e4e8 solid !important;
}

// 自定义badge样式
.mine-badge {

  .el-badge__content.is-fixed {
    top: -1px;
    right: -30px;
  }

  .el-badge__content {
    line-height: 17px;
    transform: scale(0.9) !important;
  }
}

.detail-content-img {
  display: inline-flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  height: 200px;

  img {
    width: 180px;
    max-height: 180px;
    margin:0 10px;
  }
}

.logo-content {
  display: block;
  width: 100%;
  text-align: center;

  .item-logo {
    width: 160px;
    height: 160px;
    margin-top: 5px;
    border: 1px solid #ebeef5;
  }
}
